//
//  ImageModle.m
//  滚动视图封装
//
//  Created by dlios on 15/6/12.
//  Copyright (c) 2015年 SJF1992. All rights reserved.
//

#import "ImageModle.h"

@implementation ImageModle
- (void)dealloc
{
    [_image_url release];
    [_IDName release];
    [_cover_image_url release];
    [_title release];
    [super dealloc];
}

- (instancetype) initWithDic:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self ;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.IDName = value;
    }
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}
@end
